<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>店面诊断结果详细管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#contentTable tbody tr").click(function(){
				$("#contentTable tbody tr").removeClass("select_active");
				$(this).addClass("select_active");
			});
			$("#contentTable tbody tr:first-child").click();
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<div class="icon-buttons">
		<input data-inline="true" data-icon="back" data-iconpos="notext"  type="button" value="返回" onclick="history.go(-1)"/>
	</div>
	<form:form id="searchForm" modelAttribute="storeDiagnoseDetail" action="${ctx}/sms/storeDiagnoseDetail/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<input id="parentId" name="parentId" type="hidden" value="${parentId}"/>
		<label>按项目名称查询 ：</label>
		<div class="input-append">
		<input type="text" id="searchName" name="searchName" value="${searchName}" class="input-medium search-query"/>
		&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></div>
	</form:form>
	<tags:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered ">
		<thead><tr><th>编号</th><th>分类</th><th>项目</th><th>实际值</th></tr></thead>
		<tbody>
		<c:forEach items="${page.list}" var="storeDiagnoseDetail">
			<tr>
				<td>${storeDiagnoseDetail.storeDiagnoseTemplateDetail.sequence}</td>
				<td>${storeDiagnoseDetail.storeDiagnoseTemplateDetail.item_group}</td>
				<td>${storeDiagnoseDetail.storeDiagnoseTemplateDetail.item}</td>
				<td>${storeDiagnoseDetail.real_value}</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>
